interface PersonInterface {
    name: string,
    age: number,
    speak(n: number): void
}
interface PersonInterface {
    name: string,
    age: number,
    gender: string
    speak(n: number): void
}

class Person implements PersonInterface {
    constructor(public name: string, public age: number){}
    speak(n: number):void{
        console.log('我的名字', this.name)
    }
}

const p = new Person('xiaomi', 20)


interface UserInterface extends PersonInterface {
    name: string,
    age: number
}

const user: UserInterface = {
    name: '111',
    age: 20
}